/*
 * $Id: dll.h,v 1.1 2006-03-01 14:55:49 bacon Exp $
 */

#ifndef _XP_SYS_DLL_H_
#define _XP_SYS_DLL_H_

#include <xp/types.h>
#include <xp/macros.h>

typedef struct xp_dll_t xp_dll_t;

struct xp_dll_t
{
	void* handle;
	xp_bool_t __dynamic;
};

#ifdef __cplusplus
extern "C" {
#endif

xp_dll_t* xp_dll_open (xp_dll_t* dll, const xp_char_t* path);
int xp_dll_close (xp_dll_t* dll);
void* xp_dll_lookup (xp_dll_t* dll, const xp_char_t* name);

#ifdef __cplusplus
}
#endif

#endif
